import { component } from 'vue/types/umd';
import { Component } from './../base/model/Component';
export const routerConfig = [
  {
    path: '*',
    redirect: '/home',
    name: 'home',
    meta: {
      icon: 'ios-settings'
    }
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('@/view/login/login.vue')
  },
  {
    path: '/navigation',
    component: () => import('@/view/navigation/main.vue'),
    children: [
      {
        path: '/home',
        name: '管理中心',
        meta: {
          icon: 'ios-settings'
        },
        component: () => import('@/view/home/ListPage.vue')
      },
      {
        path: '/company',
        name: '品牌商管理',
        meta: {
          icon: 'md-contacts'

        },
        component: () => import('@/view/company/ListPage.vue')
      },
      {
        path: '/dataScreen',
        name: '数据大屏',
        meta: {
          icon: 'md-contacts',
          isFull: true
        },
        component: () => import('@/view/dataScreen/dataScreen.vue')
      },
      {
        path: '/company/:id',
        name: '品牌商管理',
        meta: {
          icon: 'md-contacts'
        },
        props: true,
        component: () => import('@/view/company/FormPage.vue')
      },
      {
        path: '/account',
        name: '后台用户',
        meta: {
          icon: 'logo-android'
        },
        component: () => import('@/view/account/ListPage.vue')
      },
      {
        path: '/account/:id',
        name: '后台用户',
        meta: {
          icon: 'logo-android'
        },
        component: () => import('@/view/account/FormPage.vue')
      },
      {
        path: '/role',
        name: '角色权限',
        meta: {
          icon: 'ios-copy'
        },
        component: () => import('@/view/role/ListPage.vue')
      },
      {
        path: '/role/:id',
        name: '角色权限',
        meta: {
          icon: 'ios-copy'
        },
        component: () => import('@/view/role/FormSetting.vue')
      },
      {
        path: '/order',
        name: '订单管理',
        component: () => import('@/view/order/ListPage.vue')
      },
      {
        path: '/order/detail/:id',
        name: '订单管理',
        component: () => import('@/view/order/DetailPage.vue')
      },
      {
        path: '/member',
        name: '会员管理',
        meta: {
          icon: 'md-chatbubbles'
        },
        component: () => import('@/view/member/Nav.vue'),
        children: [
          {
            path: '/member',
            name: '会员管理',
            component: () => import('@/view/member/ListPage.vue')
          },
          {
            path: '/personinfo/:id',
            name: '个人信息',
            component: () => import('@/view/member/FormPage2.vue')
          },
          {
            path: '/point/:id',
            name: '积分明细',
            component: () => import('@/view/member/GivePointPage.vue')
          },
          {
            path: '/associateddevices/:id',
            name: '关联设备',
            component: () => import('@/view/member/AssociatedDevices.vue')
          },
          {
            path: '/usagerecords/:id',
            name: '使用记录',
            component: () => import('@/view/member/UsageRecords.vue')
          },
          {
            path: '/salesrecords/:id',
            name: '售后记录',
            component: () => import('@/view/member/AfterSalesRecords.vue')
          },
          {
            path: '/orderrecords/:id',
            name: '订单记录',
            component: () => import('@/view/member/OrderRecords.vue')
          },
          {
            path: '/benefits',
            name: '会员权益',
            meta: true,
            component: () => import('@/view/benefits/BenefitsPage.vue')
          },
          {
            path: '/member/lv',
            name: '会员等级',
            meta: true,
            component: () => import('@/view/lv/LvPage.vue')
          },
          {
            path: '/member/rule',
            name: '成长值规则',
            meta: true,
            component: () => import('@/view/rule/FormPage.vue')
          },
          {
            path: '/member/data',
            name: '图表统计',
            meta: true,
            component: () => import('@/view/member/Data.vue')
          },
          {
            path: '/associatedusers/:id',
            name: '关联用户',
            component: () => import('@/view/member/AssociatedUsers.vue')
          },
          {
            path: '/statistics',
            name: '积分统计',
            component: () => import('@/view/member/Statistics.vue')
          },
          {
            path: '/health/:id',
            name: '健康档案',
            meta: '会员详情',
            component: () => import('@/view/health/health.vue')
          },
          {
            path: '/healthcopy',
            name: '健康档案',
            meta: '会员详情',
            component: () => import('@/view/health/health copy.vue')
          },
        ]
      },
      {
        path: '/activity',
        name: '抽奖活动管理',
        meta: {
          icon: 'md-chatbubbles'
        },
        component: () => import('@/view/activity/Nav.vue'),
        children: [
          {
            path: '/activity',
            name: '抽奖活动管理',
            component: () => import('@/view/activity/ActivityPage.vue')
          }
        ]
      },
      {
        path: '/activity/prizeList/detail/:id',
        name: '奖品列表',
        component: () => import('@/view/activity/prizeList/PrizePage.vue')
      },
      {
        path: '/activity/add',
        name: '抽奖活动管理',
        component: () => import('@/view/activity/ActivityAddPage.vue')
      },
      {
        path: '/coupons',
        name: '优惠券管理',
        component: () => import('@/view/coupons/CouponsPage.vue')
      },
      {
        path: '/coupons/add',
        name: '优惠券管理',
        component: () => import('@/view/coupons/CouponsAddPage.vue')
      },
      {
        path: '/coupons/edit/:id',
        name: '优惠券管理',
        component: () => import('@/view/coupons/CouponsEditPage.vue')
      },
      {
        path: '/coupons/member/:id',
        name: '优惠券管理',
        component: () => import('@/view/coupons/SelectedMemberPage.vue')
      },
      // {
      //   path: '/member',
      //   name: '会员管理2',
      //   meta: {
      //     icon: 'md-chatbubbles'
      //   },
      //   component: () => import('@/view/member/ListPage.vue')
      // },
      // {
      //   path: '/member/:id',
      //   name: '会员管理',
      //   meta: {
      //     icon: 'md-chatbubbles'
      //   },
      //   component: () => import('@/view/member/FormPage.vue')
      // },
      {
        path: '/personinfo',
        name: '个人信息',
        component: () => import('@/view/member/FormPage2.vue')
      },
      {
        path: '/point:id',
        name: '积分明细',
        component: () => import('@/view/member/GivePointPage.vue')
      },
      {
        path: '/member/detail/:id',
        name: '会员管理',
        meta: {
          icon: 'md-chatbubbles'
        },
        component: () => import('@/view/member/DetailPage.vue')
      },
      {
        path: '/lv/edit',
        name: '会员等级配置',
        meta: {
          icon: 'md-chatbubbles'
        },
        component: () => import('@/view/lv/EditPage.vue')
      },
      {
        path: '/member/DetailDetail/:id',
        name: '会员管理',
        meta: {
          icon: 'md-chatbubbles'
        },
        component: () => import('@/view/member/AffliateDetail.vue')
      },
      {
        path: '/evaluation',
        name: '评价管理',
        meta: {
          icon: 'ios-quote'
        },
        component: () => import('@/view/evaluation/ListPage.vue')
      },
      {
        path: '/product',
        name: '产品分类',
        meta: {
          icon: 'md-grid'
        },
        component: () => import('@/view/product/ProductListPage.vue')
      },
      {
        path: '/product/edit/:id',
        name: '产品分类',
        meta: {
          icon: 'md-grid'
        },
        component: () => import('@/view/product/EditProduct.vue')
      },
      {
        path: '/product/add',
        name: '产品分类',
        meta: {
          icon: 'md-grid'
        },
        component: () => import('@/view/product/AddProduct.vue')
      },

      {
        path: '/device',
        name: '设备分类',
        meta: {
          icon: 'md-grid'
        },
        component: () => import('@/view/device/Device.vue'),
        children: []
      },
      {
        path: '/device/add',
        name: '设备分类',
        meta: {
          icon: 'md-grid'
        },
        component: () => import('@/view/device/AddDeviceModel.vue')
      },
      {
        path: '/device/nav',
        name: '设备分类',
        meta: {
          icon: 'md-grid'
        },
        component: () => import('@/view/device/Edit/Nav.vue'),
        children: [
          {
            path: '/device/nav/edit/:id',
            name: '设备分类',
            meta: {
              icon: 'md-grid'
            },
            component: () => import('@/view/device/Edit/EditDeviceModel/EditDeviceModel.vue')
          },
          {
            path: '/device/nav/plugin/:id',
            name: '插件管理',
            component: () => import('@/view/device/Edit/plugin/Plugin.vue')
          },
          {
            path: '/brainwave',
            name: '脑波管理',
            component: () => import('@/view/device/Edit/brainwave/BrainWave.vue')
          },

          // /brainwave/detail
          {
            path: '/addbrain',
            name: '新增脑波',
            component: () => import('@/view/device/Edit/brainwave/AddBrain.vue')
          },
          {
            path: '/device/nav/firmware/:id',
            name: '固件管理',
            component: () => import('@/view/device/Edit/firmware/Firmware.vue')
          },
          {
            path: '/device/nav/program/:id',
            name: '自动程序管理',
            component: () => import('@/view/device/Edit/program/Automatic.vue')
          },
          {
            path: '/device/nav/automatic/:id',
            name: '更多程序管理',
            component: () => import('@/view/device/Edit/automatic/Automatic.vue')
          },
          {
            path: '/device/nav/version/:id',
            name: '版本管理',
            component: () => import('@/view/device/Edit/version/Version.vue')
          },
          {
            path: '/device/nav/data/:id',
            name: '数据统计',
            component: () => import('@/view/device/Edit/data/Data.vue')
          },
          {
            path: '/device/nav/maintenance/:id',
            name: '保养配置',
            component: () => import('@/view/device/Edit/maintenance/Maintenance.vue')
          },
          {
            path: '',
            redirect: '/device/nav/edit/:id'
          }
        ]
      },
      {
        path: '/device/nav/edit/plugin/:id',
        name: '设备分类',
        component: () => import('@/view/device/Edit/plugin/EditPlugin.vue')
      },
      {
        path: '/device/nav/add/plugin',
        name: '设备分类',
        component: () => import('@/view/device/Edit/plugin/AddPlugin.vue')
      },
      {
        path: '/brainwave/detail',
        name: '脑波详情',
        component: () => import('@/view/device/Edit/brainwave/Detail.vue')
      },
      {
        path: '/device/nav/add/firmware',
        name: '设备分类',
        component: () => import('@/view/device/Edit/firmware/AddFirmware.vue')
      },
      {
        path: '/device/nav/edit/firmware/:id',
        name: '设备分类',
        component: () => import('@/view/device/Edit/firmware/EditFirmware.vue')
      },
      {
        path: '/device/nav/add/automatic',
        name: '设备分类',
        component: () => import('@/view/device/Edit/automatic/AddAutomatic.vue')
      },
      {
        path: '/device/nav/add/program',
        name: '设备分类',
        component: () => import('@/view/device/Edit/program/AddAutomatic.vue')
      },
      {
        path: '/device/nav/edit/automatic/:id',
        name: '设备分类',
        component: () => import('@/view/device/Edit/automatic/EditAutomatic.vue')
      },
      {
        path: '/device/nav/edit/program/:id',
        name: '设备分类',
        component: () => import('@/view/device/Edit/program/EditAutomatic.vue')
      },
      {
        path: '/device/nav/add/version/:id',
        name: '设备分类',
        component: () => import('@/view/device/Edit/version/AddVersion.vue')
      },
      {
        path: '/device-manage/devices',
        name: '设备管理',
        meta: {
          icon: 'md-bookmarks'
        },
        component: () => import('@/view/device-manage/device/Devices.vue')
      },
      {
        path: '/device-manage/restory',
        name: '恢复出厂操作记录',
        meta: {
          icon: 'md-bookmarks'
        },
        component: () => import('@/view/device-manage/device/Restory.vue')
      },
      {
        path: '/device-manage/add',
        name: '设备管理',
        component: () => import('@/view/device-manage/device/AddDevice.vue')
      },
      {
        path: '/device-manage/edit/:id',
        name: '设备管理',
        component: () => import('@/view/device-manage/device/EditDevice.vue')
      },
      {
        path: '/device/import',
        name: '设备管理',
        component: () => import('@/view/device-manage/device/Import.vue')
      },
      {
        path: '/device/detail/:id',
        name: '设备管理',
        component: () => import('@/view/device-manage/device/DeviceDetail.vue')
      },
      {
        path: '/apk',
        name: '升级栏目',
        meta: {
          icon: 'md-arrow-round-up'
        },
        component: () => import('@/view/apk/ListPage.vue')
      },
      {
        path: '/apk/add',
        name: '添加版本',
        meta: {
          icon: 'md-arrow-round-up'
        },
        component: () => import('@/view/apk/addApk.vue')
      },
      {
        path: '/agents',
        name: '经销商管理员',
        component: () => import('@/view/agents/ListPage.vue')
      },
      {
        path: '/agents/add',
        name: '新增经销商管理员',
        component: () => import('@/view/agents/FormPage.vue')
      },
      {
        path: '/agents/:id',
        name: '修改经销商管理员',
        component: () => import('@/view/agents/FormPage.vue')
      },
      {
        path: '/agents/agent/:id',
        name: '经销商',
        component: () => import('@/view/agents/agent/ListPage.vue')
      },
      {
        path: '/agentss/add/:id',
        name: '关联经销商',
        component: () => import('@/view/agents/agent/AddPage.vue')
      },
      {
        path: '/agent',
        name: '经销商管理',
        meta: {
          icon: 'md-clipboard'
        },
        component: () => import('@/view/agent/ListPage.vue')
      },
      {
        path: '/agent/:id',
        name: '经销商管理',
        meta: {
          icon: 'md-clipboard'
        },
        component: () => import('@/view/agent/FormPage.vue')
      },
      {
        path: '/news',
        name: '消息推送',
        meta: {
          icon: 'md-checkbox'
        },
        component: () => import('@/view/news/Nav.vue'),
        children: [
          {
            path: '/news/list',
            name: '列表数据',
            component: () => import('@/view/news/ListPage.vue')
          },
          {
            path: '/news/data',
            name: '图表统计',
            component: () => import('@/view/news/Data.vue')
          }
        ]
      },
      {
        path: '/news/:id',
        name: '消息推送',
        meta: {
          icon: 'md-checkbox'
        },
        component: () => import('@/view/news/FormPage.vue')
      },
      {
        path: '/news/detail/detail/:newsId',
        name: '消息会员查看',
        component: () => import('@/view/news/SelectedMemberPage.vue')
      },
      {
        path: '/info',
        name: '资讯管理',
        meta: {
          icon: 'ios-list-box-outline'
        },
        component: () => import('@/view/info/ListPage.vue'),
        children: [
          {
            path: '/info',
            name: '资讯管理',
            component: () => import('@/view/info/SortPage.vue')
          }
        ]
      },
      {
        path: '/info/:id',
        name: '资讯管理',
        meta: {
          icon: 'ios-list-box-outline'
        },
        component: () => import('@/view/info/FormPage.vue')
      },
      // {
      //   path: '/music',
      //   name: '音乐管理',
      //   meta: {
      //     icon: 'md-contacts'
      //   },
      //   component: () => import('@/view/music/ListPage.vue')
      // },
      // {
      //   path: '/music/:id',
      //   name: '音乐管理',
      //   meta: {
      //     icon: 'md-contacts'
      //   },
      //   props: true,
      //   component: () => import('@/view/music/FormPage.vue')
      // },
      {
        path: '/signlog',
        name: '签到管理',
        meta: {
          icon: 'ios-list-box-outline'
        },
        component: () => import('@/view/signlog/Nav.vue'),
        children: [
          {
            path: '/signlog/list',
            name: '列表数据',
            component: () => import('@/view/signlog/SignLog.vue')
          },
          {
            path: '/signlog/data',
            name: '图表统计',
            component: () => import('@/view/signlog/Data.vue')
          },
          {
            path: '/signlog/integral',
            name: '积分设置',
            component: () => import('@/view/signlog/Integral.vue')
          }
        ]
      },
      {
        path: '/banners',
        name: '资源位管理',
        meta: {
          icon: 'md-grid'
        },
        component: () => import('@/view/banners/Nav.vue'),
        children: [
          {
            path: '/banners/nav/adv',
            name: '登录页广告图',
            component: () => import('@/view/banners/AdvPage.vue')
          },
          {
            path: '/banners/nav/banner',
            name: '首页轮播页',
            component: () => import('@/view/banners/ListPage.vue')
          },
          {
            path: '/banners/nav/guide',
            name: '引导页轮播图',
            component: () => import('@/view/banners/GuidePage.vue')
          },
          {
            path: '/banners/nav/wishes',
            name: '图片',
            component: () => import('@/view/banners/WishesPage.vue')
          }
        ]
      },
      {
        path: '/banners/add',
        name: '资源位管理',
        component: () => import('@/view/banners/banner/AddPage.vue')
      }, // 轮播页添加
      {
        path: '/banners/adv/add',
        name: '资源位管理',
        component: () => import('@/view/banners/adv/AddPage.vue')
      }, // 广告图添加
      {
        path: '/banners/guide/add',
        name: '资源位管理',
        component: () => import('@/view/banners/guide/AddPage.vue')
      }, // 首页图添加
      {
        path: '/banners/wishes/add',
        name: '资源位管理',
        component: () => import('@/view/banners/wishes/AddPage.vue')
      }, // 贺图添加
      {
        path: '/banners/wishesList/add',
        name: '资源位管理',
        component: () => import('@/view/banners/wishesList/AddPage.vue')
      }, // 贺图添加-批量
      {
        path: '/banners/wishesList/detail/:id',
        name: '资源位管理',
        component: () => import('@/view/banners/wishesList/WishesDetail.vue')
      },
      {
        path: '/banners/nav/banner/edit/:id',
        name: '资源位管理',
        component: () => import('@/view/banners/banner/EditPage.vue')
      }, // 轮播页编辑
      {
        path: '/banners/wishesList/edit/:id',
        name: '资源位管理',
        component: () => import('@/view/banners/wishesList/EditPage.vue')
      }, // 贺图编辑
      {
        path: '/banners/nav/adv/edit/:id',
        name: '资源位管理',
        component: () => import('@/view/banners/adv/EditPage.vue')
      },
      {
        path: '/banners/nav/guide/edit/:id',
        name: '资源位管理',
        component: () => import('@/view/banners/guide/EditPage.vue')
      },
      {
        path: '/banners/nav/wishes/edit/:id',
        name: '资源位管理',
        component: () => import('@/view/banners/wishes/EditPage.vue')
      },
      {
        path: '/label',
        name: '标签管理',
        component: () => import('@/view/label/LabelPage.vue')
      },
      {
        path: '/label/add',
        name: '标签管理',
        component: () => import('@/view/label/AddPage.vue')
      },
      {
        path: '/label/edit/:id',
        name: '标签管理',
        component: () => import('@/view/label/EditPage.vue')
      },
      {
        path: '/family',
        name: '家庭管理',
        component: () => import('@/view/family/ListPage.vue')
      },
      {
        path: '/family/:phone',
        name: '家庭管理',
        component: () => import('@/view/family/ListPage.vue')
      },
      {
        path: '/family/detail/:id',
        name: '家庭管理',
        component: () => import('@/view/family/DetailPage.vue')
      },
      {
        path: '/family/DetailDetail/:id',
        name: '家庭管理',
        component: () => import('@/view/family/InfoPage.vue')
      },
      {
        path: '/benefits/add',
        name: '会员权益',
        component: () => import('@/view/benefits/AddPage.vue')
      },
      {
        path: '/benefits/edit/:id',
        name: '会员权益',
        component: () => import('@/view/benefits/EditPage.vue')
      },

      {
        path: '/lv/edit',
        name: '会员等级',
        component: () => import('@/view/lv/EditPage.vue')
      },
      {
        path: '/service',
        name: '管家服务',
        meta: {
          icon: 'md-grid'
        },
        component: () => import('@/view/service/Nav.vue'),
        children: [
          {
            path: '/service/nav/maintain',
            name: '维修申请',
            component: () => import('@/view/service/maintain/MaintainPage.vue')
          },
          {
            path: '/service/nav/maintainRecord',
            name: '维修记录',
            component: () => import('@/view/service/maintain/MaintainRecordPage.vue')
          },
          {
            path: '/service/nav/maitainregulation',
            name: '保养规则',
            component: () => import('@/view/service/maintainregulation/FormPage.vue')
          },
          {
            path: '/service/nav/apply',
            name: '保养申请',
            component: () => import('@/view/service/apply/ApplyPage.vue')
          },
          {
            path: '/service/nav/sug',
            name: '用户建议',
            component: () => import('@/view/service/sug/FormPage.vue')
          },
          {
            path: '/service/nav/customerRecord',
            name: '代客报修',
            component: () => import('@/view/service/customerRecord.vue')
          },
          {
            path: '/service/nav/orderOnline',
            name: '在线下单',
            component: () => import('@/view/service/orderonline/orderonlinePage.vue')
          }
        ]
      },
      {
        path: '/service/maintain/detail',
        name: '管家服务',
        component: () => import('@/view/service/maintain/DetailPage.vue')
      },
      {
        path: '/service/maintainRecord/detail/:id',
        name: '管家服务',
        component: () => import('@/view/service/maintain/RecordDetailPage.vue')
      },
      {
        path: '/apply/detail',
        name: '管家服务',
        component: () => import('@/view/service/apply/DetailPage.vue')
      },
      {
        path: '/questionnaire',
        name: '问卷调查',
        component: () => import('@/view/questionnaire/questionnaire.vue')
      },
      {
        path: '/questionnaire/create',
        name: '创建问卷',
        component: () => import('@/view/createquestion/createquestion.vue')
      },
      {
        path: '/questionnaire/detail',
        name: '问卷详情',
        component: () => import('@/view/questiondetail/questiondetail.vue')
      },
      {
        path: '/questionnaire/edit',
        name: '问卷编辑',
        component: () => import('@/view/questionedit/questionedit.vue')
      },

      {
        path: '/whitelist',
        name: '白名单',
        component: () => import('@/view/whitelist/whitelist.vue')
      },
      {
        path: '/operationlog',
        name: '操作日志',
        component: () => import('@/view/operationlog/OperationLog.vue')
      },

      {
        path: '/commentmanagement',
        name: '评论管理',
        component: () => import('@/view/commentmanagement/CommentManagement.vue')
      },
      {
        path: '/postingmanagement',
        name: '社区管理',
        redirect: '/management',
        component: () => import('@/view/commentmanagement/PostingManagement.vue'),
        children: [
          {
            path: '/management',
            name: '发帖管理',
            component: () => import('@/view/management/Management.vue')
          },
          {
            path: '/sensitive',
            name: '敏感词管理',
            component: () => import('@/view/signlog/Sensitive.vue')
          }
        ]
      },
      {
        path: '/commentmanagement/edit',
        name: '评论编辑',
        component: () => import('@/view/commentmanagement/EditComment.vue')
      },

      {
        path: '/management/edit',
        name: '编辑',
        component: () => import('@/view/management/EditComment.vue')
      }

      // {
      //   path: '/operation',
      //   name: '操作记录管理',
      //   component: () => import('@/view/operation/Operation.vue')
      // },
    ]
  }
];
